/**
 * 优化的 Fabric.js 导入文件
 * 由于 Fabric.js 5.x 不支持按模块导入，我们使用完整导入但进行优化配置
 */

// 导入完整的 Fabric.js
import { fabric } from 'fabric'

// 导出 fabric 对象
export { fabric }

// 导出常用的类型
export type {
    Canvas,
    StaticCanvas,
    Object as FabricObject,
    Image as FabricImage,
    Text as FabricText,
    Textbox as FabricTextbox,
    IText as FabricIText,
    Rect as FabricRect,
    Circle as FabricCircle,
    Triangle as FabricTriangle,
    Ellipse as FabricEllipse,
    Line as FabricLine,
    Polygon as FabricPolygon,
    Path as FabricPath,
    Group as FabricGroup,
    Gradient as FabricGradient
} from 'fabric'